package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "拼团订单详情")
@Table(name = "tb_team_buy_order")
public class TeamBuyOrder {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("关联买家id")
    private Long buyerUserId;
    @ApiModelProperty("拼团商品id")
    private Long teamGoodsId;
    @ApiModelProperty("商品id")
    private Long goodsId;
    @ApiModelProperty("关联拼团id")
    private Long teamBuyId;
    @ApiModelProperty("关联订单id")
    private Long orderId;
    @ApiModelProperty("状态 CANCEL(\"已取消\"),\n" +
            "UN_PAY(\"待支付\"),\n" +
            "PAYED(\"拼团中\"),\n" +
            "SUCCESS(\"拼团成功\"),\n" +
            "FAILURE(\"拼团失败\"),\n" +
            "TIMEOUT(\"支付超时\");")
    private String status;

}
